#include <iostream>
#include <string>
#include "EpollServer.hpp"

// ./epollserver port
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage : " << argv[0] << " " << "port";
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);
    EpollServer eps(port);
    eps.InitServer();
    eps.Start();
    return 0;
}